package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticlePromoter;
import com.caigou.bean.cms.param.ArticlePromoterQueryParam;
import com.caigou.bean.cms.param.ArticlePromoterParam;
import com.caigou.pojo.DictionaryOtherList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("ArticlePromoterMapper")
public interface ArticlePromoterMapper {
    List<DictionaryOtherList> loadArticlePromoterList();

    ArticlePromoter selectByPrimaryKey(Integer id);

    List<ArticlePromoter> queryArticlePromoter(ArticlePromoterQueryParam articlePromoterQueryParam);

    int insertSelective(ArticlePromoter articlePromoter);

    int updateArticlePromoterIsForbid(ArticlePromoterParam articlePromoterParam);

    int updateArticlePromoter(ArticlePromoter articlePromoter);

    List<ArticlePromoter> queryArticlePromoterByIds(int[] ids);

    ArticlePromoter articlePromoterExist(@Param("name") String name);

    List<String> loadPromoterIdByName(@Param("author") String author);
}
